package com.baizhi.entity;

import java.io.Serializable;

public class Phone implements Serializable {
    //ID
    private Integer phoneId;
    //手机名
    private String phoneName;
    //手机价钱
    private Double phonePrice;
    //上架  下架
    private Integer phoneState;
    //外键
    private Integer phoneBrandId;
    //品牌
    private Brand brand;

    @Override
    public String toString() {
        return "Phone{" +
                "phoneId=" + phoneId +
                ", phoneName='" + phoneName + '\'' +
                ", phonePrice=" + phonePrice +
                ", phoneState=" + phoneState +
                ", phoneBrandId=" + phoneBrandId +
                ", brand=" + brand +
                '}';
    }

    public Integer getPhoneId() {
        return phoneId;
    }

    public void setPhoneId(Integer phoneId) {
        this.phoneId = phoneId;
    }

    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }

    public Double getPhonePrice() {
        return phonePrice;
    }

    public void setPhonePrice(Double phonePrice) {
        this.phonePrice = phonePrice;
    }

    public Integer getPhoneState() {
        return phoneState;
    }

    public void setPhoneState(Integer phoneState) {
        this.phoneState = phoneState;
    }

    public Integer getPhoneBrandId() {
        return phoneBrandId;
    }

    public void setPhoneBrandId(Integer phoneBrandId) {
        this.phoneBrandId = phoneBrandId;
    }

    public Brand getBrand() {
        return brand;
    }

    public void setBrand(Brand brand) {
        this.brand = brand;
    }

    public Phone() {
    }

    public Phone(Integer phoneId, String phoneName, Double phonePrice, Integer phoneState, Integer phoneBrandId, Brand brand) {
        this.phoneId = phoneId;
        this.phoneName = phoneName;
        this.phonePrice = phonePrice;
        this.phoneState = phoneState;
        this.phoneBrandId = phoneBrandId;
        this.brand = brand;
    }
}